#ifndef MYDIALOG_H
#define MYDIALOG_H

#include <QDialog>
#include <QPropertyAnimation>
#include <qrect.h>

namespace Ui {
    class MyDialog;
}

class MyDialog : public QDialog
{
    Q_OBJECT

public:
    explicit MyDialog(QWidget *parent = 0);
    ~MyDialog();

    void loadQml(QString sFileName);

private:
    Ui::MyDialog *ui;
    QPropertyAnimation *mAnimation;
    QRect* visibleRect;
    int visible;
    int left;
    QString qmlFileName;

private slots:
    void toggleVisibility();
    void refreshQml();

};

#endif // MYDIALOG_H
